############################################################

# Set the base image to Ubuntu

FROM ubuntu:20.04

# Update the repository and install software
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y curl && apt-get clean && rm -rf /var/lib/apt/lists/*

# Working dir
WORKDIR /data

# Copy initilize file
COPY init_minio.sh ./
COPY mc ./

# Do init work for image
RUN chmod +x init_minio.sh && chmod +x mc

# Init minio for Dubhe
CMD ["/data/init_minio.sh"]

